package com.infore.siteManagement.repository;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.infore.siteManagement.entity.Station;

@Repository
public interface IStationVievRepository extends JpaRepository<Station, String>,JpaSpecificationExecutor<Station>{

	/**返回站点树视图**/
	@EntityGraph(value = "station_tree")
	List<Station> findAll(Specification<Station> spec);
}
